package com.lcf;

import com.lcf.ext.ExtClassPathXmlApplicationContext;
import com.lcf.service.UserService;

public class TestAnnoIoc {
    public static void main(String[] args) throws Exception {
        ExtClassPathXmlApplicationContext context = new ExtClassPathXmlApplicationContext("com.lcf.service");

        UserService userService = (UserService) context.getBean("userServiceImpl");
        userService.add();
    }
}
